//
//  SurveyCell.m
//  唧歪
//
//  Created by ZC on 15/7/9.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import "SurveyCell.h"

@implementation SurveyCell

- (void)awakeFromNib {
    
    self.checkStr = 1;
    
    [self.checkButton setImage:[UIImage imageNamed:@"white.png"] forState:UIControlStateNormal];
    [self.checkButton addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
}

-(void)click{
    
    if (self.checkStr==0) {
        [self.checkButton setImage:[UIImage imageNamed:@"white.png"] forState:UIControlStateNormal];
        self.checkStr=1;
        
    }else{
        [self.checkButton setImage:[UIImage imageNamed:@"check.png"] forState:UIControlStateNormal];

        self.checkStr=0;
        
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
